home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
6984
/
6984.xpi
/
chrome
/
lazarus.jar
/
content
/
generate-keys.js
< prev
next >
Wrap
Text File
|
2009-11-24
|
922b
|
36 lines
Lazarus.db = Lazarus.getBrowser().Lazarus.db;
Lazarus.Crypto = Lazarus.getBrowser().Lazarus.Crypto;
/**
*
*/
function onAccept(){
//and dont let them cancel it
//document.getElementById('').disabled = true;
if (Lazarus.getBrowser().Lazarus.enterMasterPassword()){
//okey dokey, lets do it.
//better tell the user that this might take a while
document.getElementById('generate-keys-progress').style.visibility = "visible";
document.getElementById('generate-keys-text').style.visibility = "visible";
Lazarus.getBrowser().Lazarus.generateEncryptionKeys();
alert(strings['keys-generated']);
//and we're done
return true;
}
else {
alert(strings['password-not-entered']);
return false;
}
}
/**
*
*/
function onCancel(){
alert(strings['key-generation-cancelled']);
}